package com.isoftstone.merchant.entity.mdept;

import java.util.Date;
import java.util.List;

public class MDept extends MDeptKey {

    private String deptName;//部门名称

    private String superDeptId;//上级部门id

    private Integer level;//级别（几级部门）

    private Integer orderNo;//排序号

    private Date createDate;//创建时间

    private String creator;//创建人

    private Date updateDate;//修改时间

    private String updator;//修改人

    private String deptId;//机构编号

    private  String parentName;//父级名称

    private List<MDept> mDept;
    //集合去重
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (!(obj instanceof MDept)) {
            return false;
        }
        MDept menu = (MDept) obj;
        return this.deptId.equals(menu.getDeptId());
    }
    public int hashCode() {
        String in =  deptId;
        return in.hashCode();
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName == null ? null : deptName.trim();
    }

    public String getSuperDeptId() {
        return superDeptId;
    }

    public void setSuperDeptId(String superDeptId) {
        this.superDeptId = superDeptId == null ? null : superDeptId.trim();
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(Integer orderNo) {
        this.orderNo = orderNo;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator == null ? null : creator.trim();
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getUpdator() {
        return updator;
    }

    public void setUpdator(String updator) {
        this.updator = updator == null ? null : updator.trim();
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    @Override
    public String getDeptId() {
        return deptId;
    }

    @Override
    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public List<MDept> getmDept() {
        return mDept;
    }

    public void setmDept(List<MDept> mDept) {
        this.mDept = mDept;
    }
}